<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Extensions  Reference</title>
    <link rel="stylesheet" type="text/css" href="css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="css/highlight.css" />
    <meta charset='utf-8'>
    <script src="js/jquery.min.js" defer></script>
    <script src="js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Section/Extensions" class="dashAnchor"></a>
    <a title="Extensions  Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="index.html">SwiftFortuneWheel 1.1.0 Docs</a> (79% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="index.html">SwiftFortuneWheel Reference</a>
        <img id="carat" src="img/carat.png" />
        Extensions  Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Classes/NoClippingLayer.html">NoClippingLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/PinImageView.html">PinImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/SpinButton.html">SpinButton</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/SpinningWheelAnimator.html">SpinningWheelAnimator</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/SwiftFortuneWheel.html">SwiftFortuneWheel</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/TTUtils.html">TTUtils</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/WheelLayer.html">WheelLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/WheelView.html">WheelView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Extensions/Array.html">Array</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/CGRect.html">CGRect</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/CGSize.html">CGSize</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSBezierPath.html">NSBezierPath</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSButton.html">NSButton</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSFont.html">NSFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSImage.html">NSImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSImageView.html">NSImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSScreen.html">NSScreen</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/NSView.html">NSView</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/SFWColor.html">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/SFWFont.html">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/SFWImage.html">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/UIView.html">UIView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Functions.html#/UIGraphicsGetCurrentContext()">UIGraphicsGetCurrentContext()</a>
              </li>
              <li class="nav-group-task">
                <a href="Functions.html#/UIGraphicsPopContext()">UIGraphicsPopContext()</a>
              </li>
              <li class="nav-group-task">
                <a href="Functions.html#/UIGraphicsPushContext(_:)">UIGraphicsPushContext(_:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Protocols/CurveTextDrawing.html">CurveTextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/ImageDrawing.html">ImageDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/ShapeDrawing.html">ShapeDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SliceCalculating.html">SliceCalculating</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SliceDrawing.html">SliceDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SpinningAnimatable.html">SpinningAnimatable</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/SpinningAnimatorProtocol.html">SpinningAnimatorProtocol</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/TextDrawing.html">TextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="Protocols/WheelMathCalculating.html">WheelMathCalculating</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Structs/Calc.html">Calc</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/ImagePreferences.html">ImagePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/LinePreferences.html">LinePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration.html">SFWConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/WheelPreferences.html">– WheelPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/CirclePreferences.html">– CirclePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/SlicePreferences.html">– SlicePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/SpinButtonPreferences.html">– SpinButtonPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/PinImageViewPreferences.html">– PinImageViewPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/Margins.html">– Margins</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/ColorType.html">– ColorType</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/AnchorImage.html">– AnchorImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/SFWConfiguration/ContentMode.html">– ContentMode</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/Slice.html">Slice</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/Slice/ContentType.html">– ContentType</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/TextPreferences.html">TextPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/TextPreferences/Orientation.html">– Orientation</a>
              </li>
              <li class="nav-group-task">
                <a href="Structs/TextPreferences/LineBreakMode.html">– LineBreakMode</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWColor">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel8SFWColora">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWControl">SFWControl</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel10SFWControla">SFWControl</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWEdgeInsets">SFWEdgeInsets</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel13SFWEdgeInsetsa">SFWEdgeInsets</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWFont">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel7SFWFonta">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/SFWImage">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:17SwiftFortuneWheel8SFWImagea">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIBezierPath">UIBezierPath</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIButton">UIButton</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIImageView">UIImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIScreen">UIScreen</a>
              </li>
              <li class="nav-group-task">
                <a href="Typealiases.html#/UIView">UIView</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>Extensions</h1>
            <p>The following extensions are available globally.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:Sa"></a>
                    <a name="//apple_ref/swift/Extension/Array" class="dashAnchor"></a>
                    <a class="token" href="#/s:Sa">Array</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/Array.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">Array</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:@S@CGSize"></a>
                    <a name="//apple_ref/swift/Extension/CGSize" class="dashAnchor"></a>
                    <a class="token" href="#/c:@S@CGSize">CGSize</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/CGSize.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">CGSize</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel8SFWColora"></a>
                    <a name="//apple_ref/swift/Extension/SFWColor" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel8SFWColora">SFWColor</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                        <a href="Extensions/SFWColor.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt"><a href="Typealiases.html#/s:17SwiftFortuneWheel8SFWColora">SFWColor</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/NSView" class="dashAnchor"></a>
                    <a class="token" href="#/">NSView</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/NSView.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/c:objc(cs)UIView"></a>
                    <a name="//apple_ref/swift/Extension/UIView" class="dashAnchor"></a>
                    <a class="token" href="#/c:objc(cs)UIView">UIView</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/UIView.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">UIView</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:SS"></a>
                    <a name="//apple_ref/swift/Extension/String" class="dashAnchor"></a>
                    <a class="token" href="#/s:SS">String</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/String.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel7SFWFonta"></a>
                    <a name="//apple_ref/swift/Extension/SFWFont" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel7SFWFonta">SFWFont</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                        <a href="Extensions/SFWFont.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt"><a href="Typealiases.html#/s:17SwiftFortuneWheel7SFWFonta">SFWFont</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel8SFWImagea"></a>
                    <a name="//apple_ref/swift/Extension/SFWImage" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel8SFWImagea">SFWImage</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                        <a href="Extensions/SFWImage.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt"><a href="Typealiases.html#/s:17SwiftFortuneWheel8SFWImagea">SFWImage</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/NSScreen" class="dashAnchor"></a>
                    <a class="token" href="#/">NSScreen</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/NSScreen.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/NSFont" class="dashAnchor"></a>
                    <a class="token" href="#/">NSFont</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/NSFont.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/NSImage" class="dashAnchor"></a>
                    <a class="token" href="#/">NSImage</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/NSImage.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/NSImageView" class="dashAnchor"></a>
                    <a class="token" href="#/">NSImageView</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/NSImageView.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/NSButton" class="dashAnchor"></a>
                    <a class="token" href="#/">NSButton</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/NSButton.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/CGRect" class="dashAnchor"></a>
                    <a class="token" href="#/">CGRect</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/CGRect.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/"></a>
                    <a name="//apple_ref/swift/Extension/NSBezierPath" class="dashAnchor"></a>
                    <a class="token" href="#/">NSBezierPath</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        
                        <a href="Extensions/NSBezierPath.html" class="slightly-smaller">See more</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://github.com/sh-khashimov/SwiftFortuneWheel.git" target="_blank" rel="external">Sherzod Khashimov</a>. All rights reserved. (Last updated: 2020-07-22)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
